/* 
 * 路由表对象：
 * 该文件挂载在Vue原型中 $mRoutesConfig
 * 作用：调用$mRouter对象的方法 传入以下对应的路由对象，详细见common目录下的router.js
 * 示例：this.$mRouter.push({route:this.$mRoutesConfig.main,query:{a:1}})
 * 注意：所有在pages目录下新建的页面都必须在"路由表"中进行声明，并且在框架的pages.json注册。
 * 
 * 配置参数项说明： 
 * name:可选配置 （路由名称）
 * path:必填配置 （路由地址）
 * requiresAuth:可选配置 （是否权限路由）
 */

export default {
	// 权限路由
	user: {
		name: "个人中心",
		path: "/pages/personalCenter/personalCenter",
		requiresAuth: true
	},
	main: {
		name: "首页",
		path: "/pages/index/main",
		requiresAuth: true
	},
	officeList:{
		name: "我的任务",
		path: "/pages/office/officeList",
		requiresAuth: true
	},
	activityList:{
		name: "我的活动",
		path: "/pages/activity/activityList",
		requiresAuth: true
	},
	studyHistory:{
		name: "学习记录",
		path: "/pages/study/studyHistory",
		requiresAuth: true
	},
	formList:{
		name: "党员评议",
		path: "/pages/public/formList",
		requiresAuth: true
	},
	takeAPhoto:{
		name: "随手拍",
		path: "/pages/photo/takeAPhoto",
		requiresAuth: true
	},
	takeAPhotoDetail:{
		name: "随手拍详情",
		path: "/pages/photo/takeAPhotoDetail",
		requiresAuth: true
	},
	photoList:{
		name: "随手拍列表",
		path: "/pages/photo/photo",
		requiresAuth: true
	},

	// 非权限路由
	index: {
		name: "首页",
		path: "/pages/index/index"
	},
	
	articleList: {
		name: "文章列表",
		path: "/pages/specialColumn/articleList"
	},
	articleDetail: {
		name: "文章详情",
		path: "/pages/specialColumn/viewDetail"
	},
	announcement: {
		name: "公告列表",
		path: "/pages/index/announcement/announcement"
	},
	announcementDetail: {
		name: "公告详情",
		path: "/pages/index/announcement/detail"
	},
	login: {
		name: "登录",
		path: "/pages/login/login"
	},
	activityAdd: {
		name: "创建活动", 
		path: "/pages/activity/newActivity"
	},
	activityAddRecord: {
		name: "补充活动/会议记录",
		path: "/pages/activity/activityRecord"
	}
}
